package com.dom.domweb.modular.service;

import com.dom.common.model.standard.ResponseModel;
import com.dom.common.model.vo.sale.*;
import com.dom.domweb.common.RspModel;
import com.dom.domweb.consumer.MarketSaleConsumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MarketSaleService extends AbstractApproveService {

    @Autowired
    private MarketSaleConsumer marketSaleConsumer;

    public String insertMarketSale(M030R request) {
        return marketSaleConsumer.insertMarketSale(request);
    }

    public M039A getMarketSaleList(M039R request) {
        return marketSaleConsumer.getMarketSaleList(request);
    }

    public M033A findUpdateMarketSale(String id) {
        return marketSaleConsumer.findUpdateMarketSale(id);
    }

    public boolean marketSaleDel(String id) {
        return marketSaleConsumer.marketSaleDel(id);
    }

    public RspModel marketSaleModify(M032R request) {
        ResponseModel rspModel = marketSaleConsumer.marketSaleModify(request);
        RspModel model = new RspModel(rspModel.getRspCode(),rspModel.getRspMsg());
        return model;
    }
}
